Skip to content

Fix bundled libgd includes #6975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Fix bundled libgd includes #6975

wants to merge 2 commits into from

Conversation

flavioheleno
Copy link
Contributor

This PR replaces the bundled libgd includes from #include <foo.h> with #include "foo.h" for gd-related headers to avoid including headers that may be available in system directories instead of the expected local headers.

Fixes https://bugs.php.net/bug.php?id=81032

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR! Besides the changes in gd/gd.c (which I commented on), this looks good to me.

@cmb69
Copy link
Member

cmb69 commented May 12, 2021

In my opinion, this should be applied to PHP-7.4+. Any objections?

@cmb69 cmb69 added the Bug label May 12, 2021
Copy link
Contributor

@morsssss morsssss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except for one comment!

Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm okay with landing this on 7.4.

@cmb69 cmb69 closed this in 28e7add May 14, 2021
@flavioheleno flavioheleno deleted the fix/bundled-gd branch May 14, 2021 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants